package com.baosight.risk.service.rire.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

import com.baosight.risk.base.entity.BaseEntity;
import com.baosight.risk.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Table: T_RIRE_RISK_EVENT
 */
@Data
@ApiModel
@Table(name = "T_RIRE_RISK_EVENT")
public class RireRiskEvent extends BaseEntity {

    /**
     * 重点风险ID
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    IMPORT_GUID
     * Nullable:  true
     */
    @Column(name = "IMPORT_GUID")
    private String importGuid;

    /**
     * 披露报告ID
     * <p>
     * <p>
     * Table:     T_RIRE_RISK_TARGET
     * Column:    IMPORT_REPORT_GUID
     * Nullable:  true
     */
    @ApiModelProperty("披露报告ID")
    @Column(name = "IMPORT_REPORT_GUID")
    private String importReportGuid;

    /**
     * 风险点ID
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    RISK_ID
     * Nullable:  true
     */
    @Column(name = "RISK_ID")
    private String riskId;

    /**
     * 风险事件名称
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    EVENT_NAME
     * Nullable:  true
     */

    @Excel(name = "风险事件名称")
    @Column(name = "EVENT_NAME")
    private String eventName;

    /**
     * 风险事件描述
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    EVENT_DESC
     * Nullable:  true
     */
    @Excel(name = "风险事件描述")
    @Column(name = "EVENT_DESC")
    private String eventDesc;

    /**
     * 产生的影响
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    EFFECT_DESC
     * Nullable:  true
     */
    @Excel(name = "产生的影响")
    @Column(name = "EFFECT_DESC")
    private String effectDesc;

    /**
     * 所属单位
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    COMP_CODE
     * Nullable:  true
     */
    @Column(name = "COMP_CODE")
    private String compCode;

    /**
     * 所属单位名称
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    COMP_NAME
     * Nullable:  true
     */
    @Excel(name = "所属单位名称")
    @Column(name = "COMP_NAME")
    private String compName;

    /**
     * 所属部门
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    DEPT_CODE
     * Nullable:  true
     */
    @Column(name = "DEPT_CODE")
    private String deptCode;

    /**
     * 所属部门名称
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    DEPT_NAME
     * Nullable:  true
     */
    @Excel(name = "所属部门名称")
    @Column(name = "DEPT_NAME")
    private String deptName;

    /**
     * 年度
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    ACCT_YEAR
     * Nullable:  true
     */
    @Excel(name = "年度")
    @Column(name = "ACCT_YEAR")
    private String acctYear;

    /**
     * 季度
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    QUARTER_CODE
     * Nullable:  true
     */

    @Column(name = "QUARTER_CODE")
    private String quarterCode;

    /**
     * 季度
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    QUARTER_NAME
     * Nullable:  true
     */
    @Column(name = "QUARTER_NAME")
    private String quarterName;

    /**
     * 发生时间
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    EVENT_DATE
     * Nullable:  true
     */
    @Excel(name = "发生时间")
    @Column(name = "EVENT_DATE")
    private String eventDate;

    /**
     * 发生地点
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    HAPPEN_ADDRESS
     * Nullable:  true
     */
    @Excel(name = "发生地点")
    @Column(name = "HAPPEN_ADDRESS")
    private String happenAddress;

    /**
     * 应对措施
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    STRATEGY
     * Nullable:  false
     */
    @Excel(name = "应对措施")
    @Column(name = "STRATEGY")
    private String strategy;

    /**
     * Table:     T_RIRE_RISK_EVENT
     * Column:    EFFECT_AMOUNT
     * Nullable:  true
     */
    @Column(name = "EFFECT_AMOUNT")
    private BigDecimal effectAmount;

    /**
     * 风险编码
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    RISK_NO
     * Nullable:  false
     */
    @Excel(name = "风险编码")
    @Column(name = "RISK_NO")
    private String riskNo;

    /**
     * 风险名称
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    RISK_NAME
     * Nullable:  true
     */
    @Excel(name = "风险名称")
    @Column(name = "RISK_NAME")
    private String riskName;

    /**
     * 状态
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    STATUS
     * Nullable:  true
     */
    @Column(name = "STATUS")
    private String status;

    /**
     * 状态说明
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    STATUS_NAME
     * Nullable:  true
     */
    @Excel(name = "状态说明")
    @Column(name = "STATUS_NAME")
    private String statusName;

    /**
     * N-内部风险事件/W-外部风险事件
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    RISK_SOURCE
     * Nullable:  true
     */

    @Column(name = "RISK_SOURCE")
    private String riskSource;

    /**
     * N-内部风险事件/W-外部风险事件
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    RISK_SOURCE_NAME
     * Nullable:  true
     */
    @Excel(name = "N-内部风险事件/W-外部风险事件")
    @Column(name = "RISK_SOURCE_NAME")
    private String riskSourceName;

    /**
     * 排序
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @Column(name = "ROW_ORDER")
//    private String rowOrder;

    private  Integer rowOrder;

    /**
     * 删除标识
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    DELETE_FLAG
     * Nullable:  true
     */
    @Column(name = "DELETE_FLAG")
    private String deleteFlag;

    /**
     * 管理单位编码
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    MANAGE_COMP_CODE
     * Nullable:  true
     */
    @Column(name = "MANAGE_COMP_CODE")
    private String manageCompCode;

    /**
     * 管理单位名称
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    MANAGE_COMP_NAME
     * Nullable:  true
     */
    @Column(name = "MANAGE_COMP_NAME")
    private String manageCompName;

    /**
     * 审核通过日期
     * <p>
     * Table:     T_RIRE_RISK_EVENT
     * Column:    AUDIT_DATE
     * Nullable:  true
     */
    @Column(name = "AUDIT_DATE")
    private String auditDate;



    private static final long serialVersionUID = 1L;
}